<template>
  <component :is="comp.tabs" :push="val" />
</template>

<script>
import { FlowLogsVpc, Code } from "@vicons/carbon";
import { cfg } from "@/cfg/cfg.js";
export default defineComponent({
  setup() {
    if (cfg.route.query.type2 == null) {
      cfg.router.push({
        query: {
          ...cfg.route.query,
          type2: "guild_log",
        },
      });
    }
    const comp = {
      tabs: defineAsyncComponent(() => import(`@/comp/nav_tabs.vue`)),
      guild_log: defineAsyncComponent(() => import(`./bot/guild_log.vue`)),
      bqbzz: defineAsyncComponent(() => import(`./bot/bqbzz.vue`)),
    };

    let val = {
      tab: [
        {
          icon: FlowLogsVpc,
          comp: comp.guild_log,
          title: `公会日志`,
          ck: `guild_log`,
        },
      ],
    };

    return {
      comp,
      val,
    };
  },
});
</script>
